//
//  BaseViewController.h
//  mike2.0
//
//  Created by mike on 15/9/7.
//  Copyright (c) 2015年 flychi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "AFNetworking.h"
//@class CarUserModel;
typedef void (^NotificationBlock)(NSNotification *notification);

@interface BaseViewController : UIViewController
//@property(strong,nonatomic)CarUserModel* userModel;
//暂无内容
@property(strong,nonatomic)UILabel * vc_nolabel;
//暂无搜索内容
@property(strong,nonatomic)UILabel * vc_searchNoLabel;

/**
 *  显示Loading
 */
- (void)showLoadingWithClear:(BOOL)isClear;

/**
 *  隐藏Loading
 */
- (void)hideLoading;

/**
 *  HUD
 */
@property(nonatomic,strong) MBProgressHUD *HUD;

/**
 *  NetWorkManager
 */
@property(nonatomic,strong) AFHTTPSessionManager *requestOperationManager;
/**
 *  加载默认数据
 */
- (void)loadDefaultDataSource;

/**
 *  加载数据源
 */
- (void)loadDataSource;

/**
 *  加载UI样式
 */
- (void)initViews;

/**
 *  加载组件
 */
- (void)initComponents;

/**
 *  设置CGRectZero从导航栏下开始计算
 */
- (void)configuraEdgesForExtendedLayout;

/**
 *  释放
 */
- (void)deallocRelease;

/**
 *  将要pop时候
 */
- (void)willPopViewController;

/**
 *  增加通知
 */
- (void)addNotification:(NSString *)notification block:(NotificationBlock)block;

@end
